package com.eg366.nioLearn.baseSocket.chapter04;

import java.util.logging.Level;
import java.util.logging.Logger;

public class LoggerTest {
	public static void main(String[] args) {
		System.out.println("11111");
		System.err.println("22222");
		Logger log1 = Logger.getLogger("aa");
		log1.setLevel(Level.WARNING);
		Logger log2 = Logger.getLogger("bb");
		log2.setLevel(Level.FINER);
		log1.warning("log1 warning:11111");
		log1.info("log1 info:11111");
		log2.info("log2 info:22222");
		System.out.println(log2.isLoggable(Level.WARNING));
	}
}
